﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Text;

namespace HZYProject.Domain
{
    /// <summary>
    /// 班级
    /// </summary>
    public class Class
    {

        [Key]
        public Guid ClassID { get; set; }

        /// <summary>
        /// 班级名称
        /// </summary>
        [StringLength(50)]
        public string Name { get; set; }


        /// <summary>
        /// 所属院校编号
        /// </summary>
        public Guid CollegesID { get; set; }


        /// <summary>
        /// 创建时间
        /// </summary>
        [DataType(DataType.DateTime)]
        public DateTime CreateTime { get; set; }

        /// <summary>
        /// 状态，1正常，0异常
        /// </summary>
        public int Status { get; set; }

        /// <summary>
        /// 导航属性-所属院校
        /// </summary>

        public virtual Colleges Colleges { get; set; }

        /// <summary>
        /// 导航属性-学生信息
        /// </summary>
        public virtual ICollection<Student> Students { get; set; }
    }
}
